function hotn_animelist_show($id)
{
	if ( $("#download_more_"+$id).css("display") == "none" )
	{
		$("#download_more_"+$id).show();
	}
	else
	{
		$("#download_more_"+$id).hide();
	}
}

function request(page,id)
{
	page = page.substr(page.indexOf('#')+1);
	
	window.location.hash = page;
	
	$("#hotn_animelist_content").html("<div style='text-align: center'><img src='Images/loading.gif' /></div>");
	
	$.post(	"project_post_"+page+".php", 
			{ id: id },
			function(data){
					$("#hotn_animelist_content").html(data);
					$('#hotn_animelist_project_view_project_image a').lightBox();
			} 
	);
}

$(document).ready(function() 
{
	var page = 'download';
	
	if (window.location.hash!='')
	{
		page = window.location.hash;
	}
	
	request(page,hotn_animelist_project_id);
});